package com.molichuxing.services.infrastructure.service;


import com.molichuxing.framework.dto.Paged;
import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.OwnershipCreateDto;
import com.molichuxing.services.infrastructure.dto.request.create.OwnershipModifyDto;
import com.molichuxing.services.infrastructure.dto.response.OwnershipDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产权方，供签订合同使用
 服务类
 * </p>
 *
 * @author 
 * @since 2019-08-13
 */
public interface OwnershipService  extends RootService {

  /***
   * 根据id 查询产权人信息
   * @param id
   * @return
   */
  OwnershipDto getOwnershipById(Integer id);

  /***
   * 根据name 查询产权人信息
   * @param name
   * @return
   */
  OwnershipDto getOwnershipByName(String name);

  /***
   * 产权人列表
   * @param pageSize
   * @param pageNum
   * @return
   */
  Paged<OwnershipDto> getOwnershipListPage(Integer pageSize, Integer pageNum);


  /***
   * 添加产权人信息
   * @param insertDto
   * @return
   */
  int createOwnership(OwnershipCreateDto insertDto);


  /***
   * 编辑产权人信息
   * @param modifyDto
   * @return
   */
  int modifyOwnership(OwnershipModifyDto modifyDto);


  /***
   * 根据ids 产权人集合 查询产权人
   * @param ids
   * @return
   */
  Map<Integer, OwnershipDto> getOwnershipListByIds(List<Integer> ids);



}
